
package DBlayer;
import Modellayer.*;
import java.util.ArrayList;

/**
 *
 * @author bruhn
 */
public interface IFDBProduct {
     // get all products
    public ArrayList<Product> getAllProduct(boolean retriveAssociation);
    //get one product having the ID
    public Product findProduct(int ID, boolean retriveAssociation);
    //find one product having the name
    public Product searchProductname( String name, boolean retriveAssociation);
    //insert a new product
    public int insertProduct(Product prod);
    //update information about an product
    public int updateProduct(Product prod);
    //delete a product
    public void deleteProduct(int ID);
}
